package com.xwj.dao;

import com.xwj.entity.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by thinkjoy on 2017/7/7.
 */
@Mapper
public interface RaUserDao {
    List<UserInfo> findAllUser();

    UserInfo findUserByAccountID(@Param("accountid") String accountID, @Param("flag") String flag);

    UserInfo findPropertyByAccountID(String accountID);

    int updateByPersonData(UserInfo userInfo);

    int updatepwd(UserInfo userInfo);

    int addSingleUser(UserInfo userInfo);

    int addMulUser(List<UserInfo> userInfos);

    int delUserByAccountid(String accountID);

    int updateDelfalgByAccountid(@Param("accountid") String accountID, @Param("flag") String flag);

    int updateRoleWhenRoleDelete(int roleId);

    List<UserInfo> findUserByRoleId(int roleId);
}
